package com.chb.adapter;

/**
 * @author chihb
 * @create-time 2024/10/23 17:13
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String s = computer.read(new SDCardImpl());
        System.out.println(s);
        computer.write(new SDCardImpl(),"hello chb");
        System.out.println("==============================================");
        String sd = computer.read(new TFAdapter(new TFCardImpl()));
        System.out.println(sd);
        computer.write(new TFAdapter(new TFCardImpl()),"hello world");
    }
}
